# Template file for 'mcomix'
pkgname=mcomix
version=1.2.1
revision=3
archs=noarch
build_style=python2-module
pycompile_module="${pkgname}"
hostmakedepends="python-setuptools"
depends="python-setuptools pygtk python-Pillow xdg-utils"
short_desc="GTK+ comic book viewer"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only"
homepage="http://sourceforge.net/projects/mcomix/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/MComix-${version}/${pkgname}-${version}.tar.bz2"
checksum=7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b

pre_patch() {
	# Delete non-free RAR related files
	rm mcomix/archive/rar_external.py
	rm mcomix/archive/rar.py
	rm mime/icons/*/application-x-cbr.png
}
